<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>

<%@page import="model.*, java.util.*" %>

<html:html>
<head>
    <title>Form for entering Personal Data</title>
    <html:base />
</head>

<b>You are currently logged in as: </b><%=request.getUserPrincipal().getName()%>
<br>
<b>Your application is: </b><%=ApplicationModel.getAppStatus(request.getUserPrincipal().getName())%>
<br>
<a href="/CSE135_Project_struts/login/invalidate.jsp">Log out.</a>

<p>
<font size="6">Name</font>
<p>
This is the start of your application. <p>

<body>

	<!-- in case validation of the entry data fails in the data bean -->
	<html:errors />

    <html:form method="post" action="/showCountryPage">
        <table border="0">
            <tr> 
                <td width="50">
                    <bean:message key="applicantData.add.firstname"/>
                </td>
                <td> 
                    <html:text property ="firstname" size = "30"/>
                </td>
            </tr>
            <tr> 
                <td width="50">
                    <bean:message key="applicantData.add.middlename"/>
                </td>
                <td> 
                    <html:text property ="middlename" size = "30"/>
                </td>
            </tr>
            <tr> 
                <td width="35">
                    <bean:message key="applicantData.add.lastname"/>
                </td> 
                <td> 
                    <html:text property="lastname" size="30"/>
                </td>
            </tr>
        </table>

        <br />

        <html:submit>
            <bean:message key="applicantData.add.submit"/> 
        </html:submit>

    </html:form>


</body>
</html:html>